<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/inc/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>注册会员</title>
		<link href="/css/common.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="${path }/js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript">
			var path="${path}";
		</script>
		<script type="text/javascript" src="${path }/js/form/jquery.form.js"></script>
		<script type="text/javascript" charset="utf-8" src="${path }/js/editor/kindeditor.js"></script>
		<script type="text/javascript">
		
			$(document).ready(function() { 
					var options = {
						beforeSubmit: checkForm,
						dataType : 'json',
						success:addAppBack
					};
					
				 	$('#addForm').ajaxForm(options); 
				    
			}); 
			
			
			
			function checkForm(){
				//return false;
			}
			function addAppBack(json){
				//var obj = eval('(' + json + ')');
				
				if(json.result=="Success"){
					$("#info").html("发表成功!");
				}else if(json.result=="Faile" && json.ErrorCode=="-1"){
					alert("请您先登录!");
				}
			}
		
			
		</script>
	</head>
	<body>
		<div class="publishDiv">
			<form action="${path}/message/save" method="post" id="addForm" name="addForm" >
				<div id="info">
					
				</div>
				<div >
					<textarea rows="4" cols="50" name="messageContent"></textarea>
				</div>
				
				<div class="submitDiv">
					<input type="submit" class="submit" value="发布">	
				</div>
			
			</form>
		</div>
		
	</body>
</html>